﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UdfReportSettingDetail.aspx.cs" Inherits="WMS6.Web.Administration.UdfReportSettingDetail" meta:resourcekey="PageResource1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>UdfReportSettingDetail</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initDetailPage();
        }
        
        //弹出窗口选择货位
        function selectLocation(obj)
        {
            var rtnValue = popModalWindow('../Configuration/LocationQuery.aspx?action='+escape(obj.id.toString()),'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById(obj.id.toString()).focus();
                document.getElementById(obj.id.toString()).value = rtnValue;
            }
        }
        
        //弹出窗口选择储区
        function selectZone()
        {
            var rtnValue = popModalWindow('../Configuration/ZoneQuery.aspx?action=txtZone','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtZone").focus();
                document.getElementById("txtZone").value = rtnValue;
            }
        }
        //弹出窗口选择筛选条件
        function selectLocSelection()
        {
            var rtnValue = popModalWindow('../Configuration/LocSelectionQuery.aspx?action=txtLocSel&RECORDTYPE=locSel', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');        
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById('txtLocSel').focus();
                document.getElementById('txtLocSel').value = rtnValue;
            }
        }
        function chkClick(obj,id)
        {
            if(obj.checked)
            {
                obj.checked = true;
                document.getElementById(id).checked=false;
            }
        }

        function showSysCode() {
            with (document.all("ddlCtrlType"))
                var sValue = options[selectedIndex].value;
            if (sValue == "DROPDOWNLIST") {
                document.getElementById("ddlSysCode").style.display = "block";
                document.getElementById("txtDefaultValue").style.display = "none";
            }
            else {
                document.getElementById("ddlSysCode").style.display = "none";
                document.getElementById("txtDefaultValue").style.display = "block";
            }
        }
    </script>
</head>
<body>
    <form id="F1873" runat="server">
    <div>
    
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblUdfReportSetting" runat="server" 
                            CssClass="label_header" Text="UDF报表设置" meta:resourcekey="lblUdfReportSetting"></asp:Label></td>
                    <td><asp:Button ID="btnCancel" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnCancel %>" 
                            AccessKey="c" onclick="btnCancel_Click" 
                            meta:resourcekey="btnCancelResource1"  /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnSave %>" 
                            AccessKey="s" onclick="btnSave_Click" 
                            meta:resourcekey="btnSaveResource1"  /></td>
                                 <td><asp:Button ID="btnSaveContinue" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnSaveContinue %>"
                            AccessKey="s" onclick="btnSaveContinue_Click" 
                                         meta:resourcekey="btnSaveContinueResource1"  /></td>
                </tr>
            </table>
        </div>
        
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="imgL1"></div>
            </div>
            <div class="tabLabelCont tabCur" id="div1">
                <asp:Label ID="one1" runat="server" class="hover" Text="UDF报表设置明细" 
                    meta:resourcekey="one1"></asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="imgR1"></div>
            </div>
        </div>
        
        <div id="div_content">
             <div id="con_one_1" style="display: block;">
                 <table width="540" style="display: block; margin-left: 10px; margin-top: 10px;">
                     <tr>
                         <td width="180px">
                             <asp:Label ID="lblLineID" CssClass="label" runat="server" Text="行号" meta:resourcekey="lblLineID"></asp:Label>
                         </td>
                         <td colspan="2">
                             <asp:Label ID="lblReportID" CssClass="label" runat="server" Text="报表代码" meta:resourcekey="lblReportID"></asp:Label>
                         </td>
                         <td>
                             &nbsp;
                         </td>
                     </tr>
                     <tr>
                         <td width="180px">
                             <asp:TextBox ID="txtLineID" runat="server" CssClass="textbox" Enabled="False" 
                                 meta:resourcekey="txtLineID"></asp:TextBox>
                         </td>
                         <td>
                             <asp:TextBox ID="txtReportID" CssClass="textbox" runat="server" Enabled="False" 
                                 meta:resourcekey="txtReportID"></asp:TextBox>
                         </td>
                         <td>
                             &nbsp;
                         </td>
                     </tr>
                     <tr>
                         <td width="180px">
                             <asp:Label ID="lblCtrlID" CssClass="label" runat="server" Text="控件ID" meta:resourcekey="lblCtrlID"></asp:Label>
                         </td>
                         <td colspan="2">
                             <asp:Label ID="lblCtrlLable" CssClass="label" runat="server" Text="控件标题" meta:resourcekey="lblCtrlLable"></asp:Label>
                         </td>
                         <td>
                             &nbsp;
                         </td>
                     </tr>
                     <tr>
                         <td width="180px">
                             <asp:TextBox ID="txtCtrlID" runat="server" CssClass="textbox" meta:resourcekey="txtCtrlID"></asp:TextBox>
                             <font class="must_input">*</font>
                         </td>
                         <td>
                             <asp:TextBox ID="txtCtrlLable" CssClass="textbox" runat="server" meta:resourcekey="txtCtrlLable"></asp:TextBox>
                             <font class="must_input">*</font>
                         </td>
                         <td>
                             &nbsp;
                         </td>
                     </tr>
                     <tr>
                         <td width="180px">
                             <asp:Label ID="lblCtrlType" CssClass="label" runat="server" Text="控件类型" meta:resourcekey="lblCtrlType"></asp:Label>
                         </td>
                         <td colspan="2">
                             <asp:Label ID="lblParamName" CssClass="label" runat="server" Text="参数名" meta:resourcekey="lblParamName"></asp:Label>
                         </td>
                         <td>
                             &nbsp;
                         </td>
                     </tr>
                     <tr>
                         <td width="180px">
                             <asp:DropDownList ID="ddlCtrlType" CssClass="mediumselectbox" runat="server" onchange="showSysCode();" meta:resourcekey="ddlCtrlType"></asp:DropDownList>                             
                             <font class="must_input">*</font>
                         </td>
                         <td>
                             <asp:TextBox ID="txtParamName" runat="server" CssClass="textbox" meta:resourcekey="txtParamName"></asp:TextBox>
                             <font class="must_input">*</font>
                         </td>
                         <td>
                             &nbsp;
                         </td>
                     </tr>
                     <tr>
                         <td width="180px">
                             <asp:Label ID="lblDefaultValue" CssClass="label" runat="server" Text="默认值" meta:resourcekey="lblDefaultValue"></asp:Label>
                         </td>
                         <td colspan="2">
                             <asp:Label ID="lblUdf1" CssClass="label" runat="server" Text="自定义1" meta:resourcekey="lblUdf1"></asp:Label>
                         </td>
                         <td>
                             &nbsp;
                         </td>
                     </tr>
                     <tr>
                         <td width="180px">
                             <asp:TextBox ID="txtDefaultValue" CssClass="textbox" runat="server" meta:resourcekey="txtDefaultValue"></asp:TextBox>
                             <asp:DropDownList ID="ddlSysCode" CssClass="mediumselectbox" runat="server" 
                                 style="display:none" meta:resourcekey="ddlSysCodeResource1" ></asp:DropDownList>
                         </td>
                         <td>
                             <asp:TextBox ID="txtUdf1" CssClass="textbox" runat="server" meta:resourcekey="txtUdf1"></asp:TextBox>
                         </td>
                         <td>
                             &nbsp;
                         </td>
                     </tr>
                     <tr>
                         <td width="180px">
                             <asp:Label ID="lblUdf2" CssClass="label" runat="server" Text="自定义2" meta:resourcekey="lblUdf2"></asp:Label>
                         </td>
                         <td colspan="2">
                             <asp:Label ID="lblUdf3" CssClass="label" runat="server" Text="自定义3" meta:resourcekey="lblUdf3"></asp:Label>
                         </td>
                         <td>
                             &nbsp;
                         </td>
                     </tr>
                     <tr>
                         <td width="180px">
                             <asp:TextBox ID="txtUdf2" runat="server" CssClass="textbox" meta:resourcekey="txtUdf2"></asp:TextBox>
                         </td>
                         <td>
                             <asp:TextBox ID="txtUdf3" CssClass="textbox" runat="server" meta:resourcekey="txtUdf3"></asp:TextBox>
                         </td>
                         <td>
                             &nbsp;
                         </td>
                     </tr>
                     <tr>
                         <td width="180px">
                             <asp:Label ID="lblUdf4" CssClass="label" runat="server" Text="自定义4" meta:resourcekey="lblUdf4"></asp:Label>
                         </td>
                         <td colspan="2">
                             <asp:Label ID="lblUdf5" CssClass="label" runat="server" Text="自定义5" meta:resourcekey="lblUdf5"></asp:Label>
                         </td>
                         <td>
                             &nbsp;
                         </td>
                     </tr>
                     <tr>
                         <td width="180px">
                             <asp:TextBox ID="txtUdf4" runat="server" CssClass="textbox" meta:resourcekey="txtUdf4"></asp:TextBox>
                         </td>
                         <td>
                             <asp:TextBox ID="txtUdf5" CssClass="textbox" runat="server" meta:resourcekey="txtUdf5"></asp:TextBox>
                         </td>
                         <td>
                             &nbsp;
                         </td>
                     </tr>
                     <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                     </tr>
                     <tr>
                         <td>
                             <asp:CheckBox ID="chbIsMustInput" runat="server" CssClass="checkbox" Text="是否必输" Checked="True"
                                 meta:resourcekey="chbIsMustInput" />
                         </td>
                         <td>
                         </td>
                         <td>
                         </td>
                     </tr>
                 </table>
             </div>
        </div>         
        <input type="hidden" id="hdnFrom" runat="server" />
        <input type="hidden" id="hdntype" runat="server" />
    </div>
    </form>
</body>
</html>
